@model dynamic
@{
	this.Layout = "~/Views/Shared/EditorTemplates/_Layout.cshtml";
}
@{   
	bool? value = null;
			
	if (this.ViewData.Model != null)
	{
		value = Convert.ToBoolean(this.ViewData.Model, System.Globalization.CultureInfo.InvariantCulture);
	}
	
	var triStateValues =
		new List<SelectListItem>
		{    
			new SelectListItem
			{
				Text = "",
				Value = String.Empty,
				Selected = !value.HasValue
			}, 
			new SelectListItem
			{
				Text = "True",                
				Value = "true",  
				Selected = value.HasValue && value.Value
			}, 
			new SelectListItem 
			{
				Text = "False",  
				Value = "false", 
				Selected = value.HasValue && !value.Value
			},
		};
}
@value
